const express = require("express");
const router = express.Router();
const pool = require("../pool.js");
const utils = require("../utils/index.js");
const moment = require("moment-timezone");
const msgUtils = require("../utils/feishu.js");
const axios = require("axios");
//获取包名列表
router.post("/reportSessionStart", async (req, res) => {
    const options = {
        method: 'POST',
        url: 'https://mobile.dingyue.io/sessions/report',
        headers: {
            accept: 'application/json',
            'X-PLATFORM': 'ios',
            'content-type': 'application/json',
            'X-USER-ID':userId,
            'X-APP-ID':appId,
            'User-Agent': userAgent,
            'Authorization': `Bearer ${apiKey}`, 
        },
        data:data
    };

    axios
        .request(options)
        .then(res => console.log(res.data))
        .catch(err => console.error(err));
});


module.exports = router;
